package com.qjc.demo.jvm.线上调优;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * @ClassName: OOMTest
 * @Author: qjc
 * @Date: 2023/9/11 08:51
 */
public class OOMTest {

    // 排查生产环境问题
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        while (true){
//            try {
//                Thread.sleep(100);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
            list.add(new String(UUID.randomUUID().toString()));
        }
    }
}
